import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import fastclick from 'fastclick'
import VueLazyload from 'vue-lazyload'

import toast from './components/common/toast'

require('../src/assets/css/base.css')

Vue.config.productionTip = false
//事件总线
Vue.prototype.$bus = new Vue()
//安装toast插件
Vue.use(toast)

//解决移动端300ms延迟
fastclick.attach(document.body)

//使用懒加载插件
Vue.use(VueLazyload,{
  loading : require('./assets/images/placeholder.png')
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')


